set(SUB_SOURCE_FILE "")
set(SUB_INCLUDE_FILE "")
set(SUB_LINK_LIB "")

get_property(SUB_SOURCE_FILE GLOBAL PROPERTY SOURCE_FILE)
get_property(SUB_INCLUDE_FILE GLOBAL PROPERTY INCLUDE_FILE)
get_property(SUB_LINK_LIB GLOBAL PROPERTY LINK_LIB)

list(APPEND SUB_SOURCE_FILE ${CMAKE_CURRENT_SOURCE_DIR}/utility/thread/thread_intf.c)
list(APPEND SUB_SOURCE_FILE ${CMAKE_CURRENT_SOURCE_DIR}/utility/log/log_intf.c)
list(APPEND SUB_SOURCE_FILE ${CMAKE_CURRENT_SOURCE_DIR}/utility/thread/lwp_thread_intf.cpp)
list(APPEND SUB_SOURCE_FILE ${CMAKE_CURRENT_SOURCE_DIR}/mod_init.c)
list(APPEND SUB_SOURCE_FILE ${CMAKE_CURRENT_SOURCE_DIR}/webcli/webcli.c)

list(APPEND SUB_INCLUDE_FILE ${CMAKE_CURRENT_SOURCE_DIR}/include)
list(APPEND SUB_INCLUDE_FILE ${CMAKE_CURRENT_SOURCE_DIR}/utility/include)
list(APPEND SUB_INCLUDE_FILE /usr/include)

list(APPEND SUB_INCLUDE_FILE ${CMAKE_CURRENT_SOURCE_DIR}/webcli)
list(APPEND SUB_INCLUDE_FILE ${CMAKE_CURRENT_SOURCE_DIR}/../third_party/libco)

list(APPEND SUB_LINK_LIB zlog pthread ${CMAKE_CURRENT_SOURCE_DIR}/../third_party/libco/lib/libcolib.a)

set_property(GLOBAL PROPERTY SOURCE_FILE ${SUB_SOURCE_FILE})
set_property(GLOBAL PROPERTY INCLUDE_FILE ${SUB_INCLUDE_FILE})
set_property(GLOBAL PROPERTY LINK_LIB ${SUB_LINK_LIB})
